function sendJson(){
	$.ajax({ 
		type :'post',
		url :'login.do',
		contentType:"application/x-www-form-urlencoded;charset=utf-8", 
		data:$("#form1").serialize(),
		success : function(result) {
			if(result=="success"){
			    window.location.href = "index.do"; 
			}else{
				if(result=="1"){
					alert("账号不存在");
				}else if(result=="2"){
					alert("账号未启用");
				}else if(result=="3"){
					alert("密码错误");
				}else if(result=="4"){
					alert("未知错误,请联系管理员");
				}
			}
		}
	});
}   
